package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.pojo.Type;
import com.zhentao.service.TypeService;
import com.zhentao.mapper.TypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author HP
* @description 针对表【type】的数据库操作Service实现
* @createDate 2025-03-20 15:22:49
*/
@Service
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type>
    implements TypeService{

    @Autowired
    private TypeMapper typeMapper;
    @Override
    public List<Type> getTypeById(Integer id) {
        QueryWrapper<Type> wrapper = new QueryWrapper<>();
        wrapper.eq("vid", id);
        return typeMapper.selectList(wrapper);
    }
}




